package com.ashen.boot.admin.project.system.datapermission.controller;


import com.ashen.boot.admin.annotation.ClassDescribe;
import com.ashen.boot.admin.annotation.PreAuth;
import com.ashen.boot.admin.domain.controller.SuperSimpleBaseController;
import com.ashen.boot.admin.project.system.datapermission.model.dto.DataPermissionDTO;
import com.ashen.boot.admin.project.system.datapermission.model.entity.DataPermissionEntity;
import com.ashen.boot.admin.project.system.datapermission.model.query.DataPermissionParams;
import com.ashen.boot.admin.project.system.datapermission.service.IDataPermissionService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 数据权限表 前端控制器
 * </p>
 *
 * @author gao
 * @since 2021-11-08
 */
@RestController
@RequestMapping("/api/v3/system/datapermission")
@PreAuth("datapermission")
@ClassDescribe("数据权限")
public class DataPermissionController extends SuperSimpleBaseController<Long, DataPermissionDTO, DataPermissionParams, DataPermissionEntity> {

    private final IDataPermissionService service;

    public DataPermissionController(IDataPermissionService service) {
        super(service);
        this.service = service;
    }
}

